package com.edu.object1;

public class test04 {
    public static void main(String[] args) {
        Movie[] m=new Movie[3];
        m[0] = new Movie("《流浪地球》",123,"吴京");
        m[1] = new Movie("《战狼1》",222,"吴京");
        m[2] = new Movie("《战狼2》",666,"吴京");
        for (int i = 0; i < m.length; i++) {
            Movie n=m[i];
            System.out.println("--------------------------");
            System.out.println(n.getName());
            System.out.println(n.getPrice());
            System.out.println(n.getAvater());
        }
    }
}
